{template 'fansinfo'}

<div class="panel panel-default">
    <div class="panel-heading">一级下线 : ({php echo count($mylist)})</div>
    <div class="panel-body">
        <table class="table" style='width:100%;'>
            <thead>
                <tr>
                    <th>编号</th>
                    <th>微信id</th>
                    <th>图像</th>
                    <th>昵称</th>
                    <th>关注时间</th>
                    <th>送{$fans['nickname']}积分</th>
            </thead>
            <tbody>
                {loop $mylist $f}
                <tr>
                    <td>{php echo ++$seq}</td>
                    <td>{php echo $this->userlink($f['from_user'])}</td>
                    <td><img width="46px" height="46px" class="img-rounded" src="{php echo preg_replace('/\/0/', '/46', stripslashes($f['avatar']));}" /></td>
                    <td>{$f['nickname']}</td>
                    <td class="followtime">{php echo date('Y-m-d H:i', $f['createtime'])}</td>
                    <td>{$f['credit']}</td>
                </tr>
                {/loop}
            </tbody>
        </table>
    </div>
 
    <div class="panel-heading">二级下线 : ({php echo count($mylist2)})</div>
    <div class="panel-body">
        <table class="table" style='width:100%;'>
            <thead>
                <tr>
                    <th>编号</th>
                    <th>一级下线</th>
                    <th>二级下线</th>
                    <th>图像</th>
                    <th>昵称</th>
                    <th>关注时间</th>
            </thead>
            <tbody>
                {php $seq = 0}
                {loop $mylist2 $f}
                <tr>
                    <td>{php echo ++$seq}</td>
                    <td>{php echo $this->userlink($f['leader'])}</td>
                    <td>{php echo $this->userlink($f['from_user'])}</td>
                    <td><img width="46px" height="46px" class="img-rounded" src="{php echo preg_replace('/\/0/', '/46', stripslashes($f['avatar']));}" /></td>
                    <td>{$f['nickname']}</td>
                    <td class="followtime">{php echo date('Y-m-d H:i', $f['createtime'])}</td>
                </tr>
                {/loop}
            </tbody>
        </table>
    </div>
</div>
